/**
 * 
 */
package com.munoor.dalai.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

import com.munoor.dalai.client.presenter.UserBadgePresenter;

/**
 * @author Osho
 * 
 */
public class UserBadgeView extends Composite implements UserBadgePresenter.Display  {
	@UiField
	Label usernameLabel;
	@UiField
	Anchor logoutLink;
	private static UserBadgeViewUiBinder uiBinder = GWT.create(UserBadgeViewUiBinder.class);

	interface UserBadgeViewUiBinder extends UiBinder<Widget, UserBadgeView> {
	}

	public UserBadgeView() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	  @Override
	  public Widget asWidget() {
	    return this;
	  }

	  @Override
	  public HasClickHandlers getLogoutLink() {
	    return logoutLink;
	  }

	  @Override
	  public HasText getUsernameLabel() {
	    return usernameLabel;
	  }

}
